package com.orange.adminapi.pojo.req.admin;

import com.orange.core.validator.IsValidPassword;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@Accessors(chain = true)
public class AdminChangePasswordReq implements Serializable {

    private Integer id;

    @IsValidPassword
    @NotBlank(message = "请填写新密码")
    private String newPassword;

    @NotBlank(message = "请填写确认密码")
    private String repeatNewPassword;
}
